<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin:0;
            padding:0;
        }
        div{
            height: 750px;
            background-position: center;
            background-size: cover;
            background-attachment: fixed;
            background-color: red;
        }
        .b1{
         
            background-image: url(./17-视差img/bg1.png);
            
        }
        .b2{
            background-image: url(./17-视差img/bg2.png);
   
        }
        .b3{
            background-image: url(./17-视差img/bg3.png);
   
        }
    </style>
</head>
<body>
    <div class="b1"></div>
    <div class="b2"></div>
    <div class="b3"></div>
</body>
</html>